# Contributor: Adam Thiede <me@adamthiede.com>
# Maintainer: Adam Thiede <me@adamthiede.com>
pkgname=reader
pkgver=0.4.4
pkgrel=1
pkgdesc="reader parses a web page for its actual content and displays it in nicely highlighted text on the command line."
url="https://github.com/mrusme/reader"
arch="all"
license="GPL-3.0-only"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/mrusme/reader/archive/v$pkgver.tar.gz"
options="!check" # no tests

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build
}

package() {
	install -Dm755 "$pkgname" "$pkgdir"/usr/bin/"$pkgname"
}

sha512sums="
9ccd76cbc615e6ba565579897c0e9dfb771434988706f1b5393a5b49cd70aac56dbeaa1a145b300d807cebd52d83c643e64468c9c1ee1f5fd323fc6dec4db51c  reader-0.4.4.tar.gz
"
